package org.baitiaojun.dao;

import org.baitiaojun.pojo.CheckGroupCheckItemKey;

import java.util.List;

public interface CheckGroupCheckItemMapper {
    int deleteByPrimaryKey(CheckGroupCheckItemKey key);

    int insert(CheckGroupCheckItemKey record);

    int insertSelective(CheckGroupCheckItemKey record);

    List<CheckGroupCheckItemKey> selectCheckGroupCheckItemByCheckItemId(Integer id);

    int deleteCheckGroupCheckItemMapperById(Integer checkItemId);

    /**
     * 添加检查项和检查组的关联数据
     * @param checkGroupCheckItemKey
     * @return
     */
    int insertCheckGroupCheckItem(CheckGroupCheckItemKey checkGroupCheckItemKey);

    List<Integer> selectCheckItemIdsById(Integer id);

    int deleteCheckGroupCheckItemById(Integer checkitemId);

    int deleteCheckGroupCheckItemByCheckGroupId(Integer checkGroupId);
}